﻿namespace Wips.Infrastructure
{
    public class Consts
    {
        /// <summary>
        /// 健康检查的路由
        /// </summary>
        public const string MapHealthCheckPath = "/api/agentex/health";

        /// <summary>
        /// 获取文件夹列表的路由
        /// </summary>
        public const string MapGetFolderListPath = "/api/agentex/getfolderlist";


        /// <summary>
        /// 获取盘符的路由
        /// </summary>
        public const string MapGetRootPath = "/api/agentex/getrootpath";

        /// <summary>
        /// 子服务备份的路由
        /// </summary>
        public const string MapAgentBackUpPath = "/api/agentex/backup";

        /// <summary>
        /// 注册子服务的路由
        /// </summary>
        public const string MapRegisterAgentServerPath = "/api/master/registeragent";


        /// <summary>
        /// 上传地址
        /// </summary>
        public const string MapUploadZipFile = "/api/agent/upload";


        /// <summary>
        /// 获取压缩包的文件目录
        /// </summary>
        public const string MapGetZipFileInfoList = "/api/agentex/getzipfile";


        /// <summary>
        /// 获取文件内容
        /// </summary>
        public const string MapGetFileText = "/api/agentex/getfiletext";

        /// <summary>
        /// 保存文件内容
        /// </summary>
        public const string MapSaveFileText = "/api/agentex/savefiletext";


        /// <summary>
        /// 发布
        /// </summary>
        public const string MapPublish = "/api/agentex/publish";

        /// <summary>
        /// 执行命令
        /// </summary>
        public const string MapRunScript = "/api/agentex/runscript";


        /// <summary>
        /// 不支持的命令
        /// </summary>
        public static List<string> NotSupportCommand =
            new List<string> { "rm", "rm -rf", "shutdown", "reboot", "halt", "poweroff", "del", "REN", "BEN", "reg", "delete", "rd", "cmd" };

        /// <summary>
        /// 不支持的关键字
        /// </summary>
        public static List<string> NotSupportKeyWord = new List<string> { "CreateObject" };

    }

}